<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<%@ taglib uri="/comp" prefix="comp"%>

<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
<script type="text/javascript" src="<s:url value="/script/easyajax.js"/>"></script>
<script type="text/javascript" src="<s:url value="/script/selfResize.js"/>"></script>
<script>
    Date.prototype.format = function(format)   
{   
   var o = {   
     "M+" : this.getMonth()+1, //month   
     "d+" : this.getDate(),    //day   
     "h+" : this.getHours(),   //hour   
     "m+" : this.getMinutes(), //minute   
     "s+" : this.getSeconds(), //second   
     "q+" : Math.floor((this.getMonth()+3)/3), //quarter   
     "S" : this.getMilliseconds() //millisecond   
   }   
   if(/(y+)/.test(format)) format=format.replace(RegExp.$1,   
     (this.getFullYear()+"").substr(4 - RegExp.$1.length));   
   for(var k in o)if(new RegExp("("+ k +")").test(format))   
     format = format.replace(RegExp.$1,   
       RegExp.$1.length==1 ? o[k] :    
         ("00"+ o[k]).substr((""+ o[k]).length));   
   return format;   
} 
var today = new Date().format("dd/MM/yyyy");
function checkTopic(){
	var url="/jforum/recentTopics/listTopic.page";
	call(url,function(XML){//异步调用 
	    var topicAjax=new AjaxObj();
	    topicAjax.xml=XML.responseXML;
	    var topicTable=$("topicTable");
	    for(i=0;i<topicAjax.length();i++){
	        if(i>4){
	        	break;
	        }
	        var tr=topicTable.insertRow();
	        var tr2=topicTable.insertRow();
	        var td0=document.createElement("td");
	        var td2=document.createElement("td");
	        var td3=document.createElement("td");
	        td0.width="30";
	        td0.innerHTML="<div align='center'><img src='<s:url value='/images/home_17.gif'/>' width=6 height=6 alt=''></div>";
	        td2.innerHTML="<a href=javascript:show('/jforum/posts/list/"+$$(topicAjax.datas(i),"id")+".page?poc=poc')>"+$$(topicAjax.datas(i),"title")+"</a>";
	        
	        if($$(topicAjax.datas(i),"firstPostTime").indexOf(today)!=-1){
	        	td2.innerHTML+='  <img src="<s:url value="/images/new.gif"/>" width="16" height="16">';
	        }
	        
	        
	        td3.colSpan="2";
	        td3.background="<s:url value='/images/home_21.gif'/>";
	        td0.height="25";
	        td2.height="25";
	        td3.height="1";
	        tr.appendChild(td0);
	        tr.appendChild(td2);
	        tr2.appendChild(td3);
	    }
	});
}
function show(url){
	window.open(url);
}
function initLoad(){
	f_iframeResize();
	//checkTopic();
}
window.onload = initLoad;
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
 <table width="980" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="59" valign="top" colspan="5"><img src="<s:url value="/images/new/cphdzx_home_top2.gif"/>" width="980" height="67" alt="" /></td>
		</tr>
        <tr>
          <td width="59" valign="top"><img src="<s:url value="/images/new/cphdzx_home_2.gif"/>" width="59" height="241" alt="" /></td>
          <td width="608" valign="top"><table width="100%" height="190" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><img src="<s:url value="/images/new/cphdzx_home_3.gif"/>" width="556" height="31" alt="" /></td>
                    <td><img src="<s:url value="/images/new/cphdzx_home_4.gif"/>" width="52" height="31"  
                    onclick="window.location='<s:url value="/business/product/showProductReferences.action"/>'" 
					width=59 height=33 alt="点击查看更多内容" style="cursor:hand" /></td>
                  </tr>
                </table>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td valign="top">
                      <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
                      <s:iterator id="pr" value="productRefs">
                          <tr>
                            <td width="30" height="25"><div align="center"><img src="<s:url value="/images/new/home_17.gif"/>" width="6" height="6" alt="" /></div></td>
                            <td>
                            <a
										href="<s:url value="/business/product/showProductReference.action?productReference.id="/><s:property value="id"/>"
										target="_blank">
                            <s:property value="title" />(<s:date
										name="begin" format="yyyy-MM-dd" />)</a>&nbsp;
										<comp:out inTime="${pr.begin}"><img
										src="<s:url value="/images/new.gif"/>" width="16" height="16">
										</comp:out>
							</td>
                          </tr>
                          <tr>
                            <td colspan="2" height="1"  background="<s:url value="/images/new/home_21.gif"/>"></td>
                          </tr>
                      </s:iterator>
                      </table></td>
                      <td width="184"><img src="<s:url value="/images/new/cphdzx_home_10.gif"/>" width="184" height="153" alt="" /></td>
                    </tr>
                </table></td>
            </tr>
          </table>
            <table width="100%" height="190" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="25" background="<s:url value="/images/new/cphdzx_home_21.gif"/>"><img src="<s:url value="/images/new/cphdzx_home_20.gif"/>" width="132" height="25" alt="" /></td>
                      <td width="52"><img src="<s:url value="/images/new/cphdzx_home_23.gif"/>" width="52" height="25" alt=""   
                        onclick="window.open('<s:url value="/common/toForum.action"/>','','')" 
					     alt="点击 进入虚拟团队" style="cursor:hand"//></td>
                    </tr>
                  </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-left:#4BC083 1px solid;border-right:#4BC083 1px solid">
                      <tr>
                        <td width="136"><img src="<s:url value="/images/new/cphdzx_home_26.gif"/>" width="136" height="126" alt="" ></td>
                        <td valign="top">
                        <table  id="topicTable"  width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
                        </table>
                        </td>
                      </tr>
                  </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="8" height="8"><img src="<s:url value="/images/new/cphdzx_home_36.gif"/>" width="8" height="8" alt="" /></td>
                        <td background="<s:url value="/images/new/cphdzx_home_37.gif"/>"><img src="<s:url value="/images/new/spacer.gif"/>" width="1" height="1" /></td>
                        <td width="7"><img src="<s:url value="/images/new/cphdzx_home_40.gif"/>" width="7" height="8" alt="" /></td>
                      </tr>
                    </table></td>
              </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="608" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><a href="<s:url value="/business/share/showAllShareReference.action"/>"><img src="<s:url value="/images/new/cphdzx_home_43.gif"/>" alt="" width="608" height="32" border="0" /></a></td>
                  </tr>
                  <tr>
                    <td width="608">
						<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
							<tr>
							<td width="304">
							<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
							<s:iterator id="sr" value="shareRefs" status="stat">
								<s:if test="#stat.index < 5">
									<tr>
										<td width="30" height="25">
										<div align="center"><img
											src="<s:url value="/images/new/home_17.gif"/>" width="6"
											height="6" alt="" /></div>
										</td>
										<td><a href="<s:url value="/business/share/showShareRefDetail.action?shareReference.id="/><s:property value="id"/>" 
										target="_blank"><s:property value="title" />(<s:date
											name="begin" format="yyyy-MM-dd" />)</a>&nbsp;
											<comp:out inTime="${sr.begin}"><img
											src="<s:url value="/images/new.gif"/>" width="16" height="16">
											</comp:out></td>
									</tr>
									<tr>
										<td colspan="2" height="1"
											background="<s:url value="/images/new/home_21.gif"/>"></td>
									</tr>
								</s:if>
							</s:iterator>
							</table>
							</td>
							<td  width="304">
							<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
							<s:iterator id="sr" value="shareRefs"  status="stat">
								<s:if test="#stat.index >= 5">
									<tr>
										<td width="30" height="25">
										<div align="center"><img
											src="<s:url value="/images/new/home_17.gif"/>" width="6"
											height="6" alt="" /></div>
										</td>
										<td><a href="<s:url value="/business/share/showShareRefDetail.action?shareReference.id="/><s:property value="id"/>" 
										target="_blank"><s:property value="title" />(<s:date
											name="begin" format="yyyy-MM-dd" />)</a>&nbsp;
											<comp:out inTime="${sr.begin}"><img
											src="<s:url value="/images/new.gif"/>" width="16" height="16">
											</comp:out></td>
									</tr>
									<tr>
										<td colspan="2" height="1"
											background="<s:url value="/images/new/home_21.gif"/>"></td>
									</tr>
								</s:if>
							</s:iterator>
						</table>
							</td>
							</tr>
						</table>
						</td>
                  </tr>
                </table></td>
                <td>&nbsp;</td>
                
              </tr>
            </table></td><td width=21> </td>
            
          <td valign="top"><table width="236" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="<s:url value="/images/new/cphdzx_home_7.gif"/>"
                    onclick="window.location='<s:url value="/bpm/newBusinessReq_findOARunTaskList.action"/>'" width=236 height=31 alt="点击查看更多内容" style="cursor:hand" /></td>
            </tr>
            <tr>
              <td height="200" valign="top" background="<s:url value="/images/new/cphdzx_home_11.gif"/>">

              	<table width="97%" border="0" cellspacing="0" cellpadding="0" align="center">
              		<!--业务需求交互单-->
                <s:iterator id="pr" value="flowTaskObjViewList">
	                <tr>
	                  <td width="30" height="25"><div align="center"><img src="<s:url value="/images/new/home_17.gif"/>" width="6" height="6" alt="" /></div></td>
	                  <td>
	                  	<%--[业务需求]需求代办单- --%>
	                  	<a href="<s:url value="/"/><s:property value="url" />&flowTaskId=<s:property value="flowTaskId" />&procinstId=<s:property value="procInstId" />"><s:property value="title" /><font color="red">[<s:date name="startTime" format="yyyy-MM-dd"/>]</font></a>	                 	
	                  </td>
	                </tr>
	                <tr>
	                  <td colspan="2" height="1"  background="<s:url value="/images/new/home_21.gif"/>"></td>
	                </tr>
              	</s:iterator>

              </table></td>
            </tr>
            <tr>
              <td><img src="<s:url value="/images/new/cphdzx_home_30.gif"/>" width="236" height="11" alt="" /></td>
            </tr>
          </table>          
            <br />
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="28" valign="top"><img src="<s:url value="/images/new/cphdzx_home_32.gif"/>" width="236" height="23" alt="" /></td>
              </tr>
              <tr>
                <td height="58" valign="top"><a href="javascript:void(0);" onclick="openHelp();"><img src="<s:url value="/images/new/helpbook.gif"/>" alt="" width="237" height="52" border="0" /></a></td>
              </tr>
              <tr>
                <td height="58" valign="top"><a href="<s:url value="/business/search/toExpNet.action"/>"><img src="<s:url value="/images/new/cphdzx_home_34.gif"/>" alt="" width="237" height="52" border="0" /></a></td>
              </tr>
              <tr>
                <td height="58" valign="top"><a href="<s:url value="/business/search/listSearch.action"/>"><img src="<s:url value="/images/new/cphdzx_home_48.gif"/>" alt="" width="237" height="52" border="0" /></a></td>
              </tr>
              <tr>
                <td height="58" valign="top"><a href="<s:url value="/business/search/toNetMap.action"/>"><img src="<s:url value="/images/new/cphdzx_home_52.gif"/>" alt="" width="237" height="52" border="0" /></a></td>
              </tr>
            </table></td>
          <td width="56" valign="top"><img src="<s:url value="/images/new/cphdzx_home_8.gif"/>" width="56" height="310" alt="" /></td>
        </tr>
      </table>
</body>
<script>
function openHelp(){
		 window.open("<s:url value="/common/help_down.html" />","pp","height=120,width=300,status=yes,toolbar=no,menubar=no,location=no");
}
</script>
</html>
